﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ShowUser.aspx.cs" Inherits="LabMS.Web.Role.ShowUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>包含指定角色的用户</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->
</head>
<body class="mainBody">
    <form id="uiForm" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        <a href="RoleList.aspx">角色管理</a>
                    </label>
                    &gt;
                    <label>
                        查看角色所对应的用户</label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <input id="backbtn" type="button" class="button" runat="server" onclick="javascript:window.location.href='RoleList.aspx'" value="返回" />
            </p>
            <p>
                <span>用户名：</span><asp:TextBox ID="tbUserName" runat="server"></asp:TextBox>
                <asp:Button ID="btnserach" runat="server" Text="搜索" OnClick="btnserach_Click" Width="53px"
                    CssClass="button" />
            </p>
            <asp:GridView ID="gvRole" runat="server" AutoGenerateColumns="false" DataKeyNames="UserId"
                CssClass="infoTable" Width="98%" OnRowDataBound="gvRole_RowDataBound" OnRowCommand="gvRole_RowCommand"
                AllowPaging="true" OnPageIndexChanging="gvRole_PageIndexChanging">
                <Columns>
                    <asp:BoundField DataField="UserId" Visible="false" />
                    <%--<asp:HyperLinkField DataTextField="UserName" HeaderText="用户名" ItemStyle-Width="35%"
                        DataNavigateUrlFormatString="../User/EditUser.aspx?UserId={0}" DataNavigateUrlFields="UserId" />--%>
                    <asp:BoundField DataField="UserName" HeaderText="用户名" />
                    <asp:BoundField DataField="RealName" HeaderText="真实姓名" ItemStyle-Width="50%" />
                </Columns>
                <EmptyDataTemplate>
                    无角色内容
                </EmptyDataTemplate>
                <HeaderStyle CssClass="header" />
                <PagerSettings FirstPageText="首页" LastPageText="最后页" NextPageText="后一页" PreviousPageText="前一页"
                    Mode="NextPreviousFirstLast" />
            </asp:GridView>
        </div>
    </form>
</body>
</html>

<script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

<script type="text/javascript">
        $(function(){
            /* 修改样式 */
            $("#gvRole > tbody > tr:even").not(":first").addClass("even");
            $("#gvRole > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
                });
</script>

